package com.xintai.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xintai.common.annotation.Excels;
import com.xintai.common.core.domain.entity.SysDictData;
import com.xintai.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xintai.common.annotation.Excel;
import com.xintai.common.core.domain.BaseEntity;

/**
 * ERP仓库对象 erp_cangku
 * 
 * @author xintai
 * @date 2020-12-28
 */
public class ErpCangku extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 仓库ID */
    private Integer cangkuId;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String cangkuName;

    /** 数据字典表主键，公司名称 和 厂区 */
    private Integer dictCode;

    /** 数据字典表主键，公司名称 和 厂区 */
    @Excels({
            @Excel(name = "所属公司", targetAttr = "dictLabel", type = Excel.Type.EXPORT),
            @Excel(name = "厂区", targetAttr = "dictValue", type = Excel.Type.EXPORT)
    })
    private SysDictData sysDictData;

    /**仓库属性：成品，原料，其他*/
    private Integer	cangkuProperty;

    /**仓库属性：成品，原料，其他*/
    @Excel(name = "仓库属性", targetAttr = "dictLabel", type = Excel.Type.EXPORT)
    private SysDictData ckProperty;

    /** 备注 */
    @Excel(name = "备注")
    private String cangkuRemark;

    /** 维护人 */
    private Integer userId;

    @Excel(name = "维护人", targetAttr = "nickName", type = Excel.Type.EXPORT)
    private SysUser sysUser;

    /** 维护时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "维护时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date cangkuTime;

    /** 是否删除， 字典数据不删除，0  正常可用，1 删除禁用， 但可关联查询 */
    private Integer cangkuIsdel;

    /** 排序 */
    private Integer cangkuOrder;

    public Integer getCangkuId() {
        return cangkuId;
    }

    public void setCangkuId(Integer cangkuId) {
        this.cangkuId = cangkuId;
    }

    public String getCangkuName() {
        return cangkuName;
    }

    public void setCangkuName(String cangkuName) {
        this.cangkuName = cangkuName;
    }

    public Integer getDictCode() {
        return dictCode;
    }

    public void setDictCode(Integer dictCode) {
        this.dictCode = dictCode;
    }

    public SysDictData getSysDictData() {
        return sysDictData;
    }

    public void setSysDictData(SysDictData sysDictData) {
        this.sysDictData = sysDictData;
    }

    public Integer getCangkuProperty() {
        return cangkuProperty;
    }

    public void setCangkuProperty(Integer cangkuProperty) {
        this.cangkuProperty = cangkuProperty;
    }

    public SysDictData getCkProperty() {
        return ckProperty;
    }

    public void setCkProperty(SysDictData ckProperty) {
        this.ckProperty = ckProperty;
    }

    public String getCangkuRemark() {
        return cangkuRemark;
    }

    public void setCangkuRemark(String cangkuRemark) {
        this.cangkuRemark = cangkuRemark;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public Date getCangkuTime() {
        return cangkuTime;
    }

    public void setCangkuTime(Date cangkuTime) {
        this.cangkuTime = cangkuTime;
    }

    public Integer getCangkuIsdel() {
        return cangkuIsdel;
    }

    public void setCangkuIsdel(Integer cangkuIsdel) {
        this.cangkuIsdel = cangkuIsdel;
    }

    public Integer getCangkuOrder() {
        return cangkuOrder;
    }

    public void setCangkuOrder(Integer cangkuOrder) {
        this.cangkuOrder = cangkuOrder;
    }

    @Override
    public String toString() {
        return "ErpCangku{" +
                "cangkuId=" + cangkuId +
                ", cangkuName='" + cangkuName + '\'' +
                ", dictCode=" + dictCode +
                ", sysDictData=" + sysDictData +
                ", cangkuProperty=" + cangkuProperty +
                ", ckProperty=" + ckProperty +
                ", cangkuRemark='" + cangkuRemark + '\'' +
                ", userId=" + userId +
                ", sysUser=" + sysUser +
                ", cangkuTime=" + cangkuTime +
                ", cangkuIsdel=" + cangkuIsdel +
                ", cangkuOrder=" + cangkuOrder +
                '}';
    }
}
